var mapApp = new Object();

function loadMap() {
    proj4.defs("EPSG:4490", "+proj=longlat +ellps=GRS80 +no_defs");
    //西安80
    proj4.defs("EPSG:4610","+proj=longlat +a=6378140 +b=6356755.288157528 +no_defs");
    proj4.defs("EPSG:4549","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs");
    proj4.defs("EPSG:2335","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs");
    proj4.defs("EPSG:2345","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs");
    proj4.defs("EPSG:2364","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs");
    var config={
        center: [118.357788,35.103112],
        zoom: 10,
    }

    var bounds = [114.972,34.096,
        122.596,38.348];
    mapApp.olMap = new ol.Map({
        target: 'map',
        view: new ol.View({
            center: config.center,

            zoom: config.zoom,
            projection: "EPSG:4326"
        }),
        controls: []
    });
    mapApp.olMap.getView().fit(bounds,mapApp.olMap.getSize());


    addAMap();






    // //加载山东省界
    addSuperMapShandonProvince();
    // //加载山东省各个市界
     addSuperMapShandonCity()
    // //加载非遗分布图层
     addSuperMapFeiYi();
    // //加载非遗申请人图层
     addFeiYiPeople();



}
$(document).ready(loadMap)